@extends('layouts.admin')
@section('title')
    <title>商家详情</title>
@endsection
@section('content')
    @include('layouts.left')
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                商家详情
                <small>Control panel</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li class="active">Dashboard</li>
            </ol>
        </section>
        <!-- Main content -->
        <section class="content">
        <div class="row">
                <div class="col-md-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">查看商户详情</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body no-padding">
                            <table class="table table-striped">
                                <tbody>
                                <tr>
                                    <th style="width: 230px">id</th>
                                    <td>{{ $datas['shopid'] }}</td>
                                </tr>
                                <tr>
                                    <th>店铺名</th>
                                    <td>{{ $datas['shopname'] }}</td>
                                </tr>
                                <tr>    
                                    <th>店铺头像</th>
                                    <td></td>
                                </tr>
                                <tr>
                                    <th>联系人姓名</th>
                                    <td>{{ $datas['contactman']}}</td>
                                </tr>
                                <tr>
                                    <th>联系手机</th>
                                    <td>{{ $datas['mobile'] }}</td>
                                </tr>
                                <tr>
                                    <th>联系人电话</th>
                                    <td>{{ $datas['contacttel'] }}</td>
                                </tr>
                                <tr>
                                    <th>店铺简介</th>
                                    <td>{{ $datas['referral']}}</td>
                                </tr>
                                <tr>
                                    <th>店铺备注</th>
                                    <td>{{ $datas['remark']}}</td>
                                </tr>
                                <tr>
                                    <th>地址</th>
                                    <td>{{ $datas['address'] }}</td>
                                </tr>
                                <tr>
                                    <th>详细地址</th>
                                    <td>{{ $datas['addressmore'] }}</td>
                                </tr>
                                <tr>    
                                    <th>加入时间</th>
                                    <td>{{ $datas['entertime'] }}</td>
                                </tr>
                                <tr>
                                    <th>变更等级开始时间</th>
                                    <td>{{ $datas['changetime'] }}</td>
                                </tr>
                                <tr>
                                    <th>是否在有效期内</th>
                                    <td>@if($datas['expiretime'] > $now_time)
                                            在有效期内
                                        @else
                                            无效期
                                        @endif
                                    </td>
                                </tr>
                                <tr>    
                                    <th>是否禁用</th>
                                    <td>@if($datas['status'] == '1' )
                                            正常
                                        @else
                                            禁用
                                        @endif
                                    </td>
                                </tr>
                                <tr>
                                    <th>是否打烊</th>
                                    <td>@if($datas['closeshop'] == '1')
                                            营业
                                        @else
                                            打烊
                                        @endif
                                    </td>
                                </tr>
                                <tr>
                                    <th>商户等级</th>
                                    <td>{{ $sdatas['rank'] }}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>
                <!-- /.col -->
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
    <!-- 在这里 写js函数-->
@endsection


